home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / acx.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  56 lines

  1. <search function="acx">
  2.   <name>Cambridgesoft ChemACX.com</name>
  3.   <description>
  4.     Search for chemical compounds.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.           <tr><td>acx chloride</td></tr>
  8.       </table>
  9.   </description>
  10.   <category>Other</category>
  11.   <link>http://chemacx.cambridgesoft.com/</link>
  12.   <contributor>Stewart Rubenstein</contributor>
  13.   
  14.   <form name="acxf"
  15.         action="http://chemacx.cambridgesoft.com/chemacx/default.asp"
  16.         method="GET">
  17.     <input type="hidden" name="formgroup" value="basenp_form_group"/>
  18.     <input type="hidden" name="dbname" value="chemacx"/>
  19.     <input type="hidden" name="dataaction" value="query_string"/>
  20.     <input type="hidden" name="field_type" value="TEXT"/>
  21.     <input type="hidden" name="field_criteria" value="="/>
  22.     <input type="hidden" name="full_field_name" value=""/>
  23.     <input type="hidden" name="field_value" value=""/>
  24.     <input type="hidden" name="UseHeader" value="on"/>
  25.     <input type="hidden" name="DisplayMessage" value=""/>
  26.     <input type="hidden" name="ReturnURL"/>
  27.     <input type="hidden" name="ReturnType"/>
  28.   </form>
  29.   
  30.   <script><![CDATA[
  31.     function acx(q)
  32.     {
  33.       if( nullArgs("acx", q) )
  34.         return false;
  35.       else
  36.       {
  37.         // check to see if it's a cas registry number
  38.         cas = new RegExp("^([0-9]{1,9})\\s*-?\\s*([0-9]{1,2}\\s*-?\\s*[0-9])$", "");
  39.         res = cas.exec(q);
  40.         if (res)
  41.           document.acxf.full_field_name.value = "Substance.CAS";
  42.         else
  43.           document.acxf.full_field_name.value = "Synonym.Name";
  44.       document.acxf.field_value.value = q;
  45.       submitForm(acxf);
  46.       }
  47.     }
  48.   ]]></script>
  49.  
  50.   <copyright>
  51.     Copyright (c) 2002 David Bau
  52.     Distributed under the terms of the
  53.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  54.   </copyright>
  55. </search>
  56.